<template>
	<view>
		<u-navbar title-color=' #FFFFFF' back-icon-color='#FFFFFF' :background="{
			 	background: 'rgb(33,33,33)'
			 }" title='学习积分' :is-back="true" title-bold :border-bottom="false" :immersive="true">
		</u-navbar>
		<view class="top">
			<view class="top_1">
				<text>我的积分</text>
				<text>1524</text>
			</view>
			<view class="top_2">
				兑换
			</view>
		</view>
		<liuyuno-tabs :pingfen='false' :tabData="list" :activeIndex="current" @tabClick='tabClick' />
		<view class="xian">

		</view>
		<view style="padding: 30rpx 30rpx 0 30rpx" v-for="(item,index) in 5">
			<view class="carp" >
				<view class="carp_1">
					<image
						src="https://img1.baidu.com/it/u=793269991,2224346596&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=500" />
					<view class="carp_1_1">
						<text>购买课程赠送</text>
						<text>2021-10-10 12:00:00</text>
					</view>
				</view>
				<view class="carp_2">
					+10.00
				</view>
			</view>
		</view>
	
	</view>
</template>

<script>
	export default {
		data() {
			return {
				list: [{
						name: '积分收入',
						width: '200rpx'
					}, {
						name: '积分支出',
						width: '200rpx'
					}

				],
				current: 0
			};
		}
	}
</script>

<style lang="scss">
	.carp {
		display: flex;
		justify-content: space-between;
		padding-bottom: 30rpx;
		align-items: center;
		border-bottom: 1rpx solid #EFEFEF;

		.carp_2 {
			font-size: 32rpx;
			font-family: HarmonyOS Sans;
			font-weight: bold;
			color: #FFB300;
			opacity: 1;
		}

		.carp_1 {
			display: flex;

			image {
				margin-right: 20rpx;
				width: 78rpx;
				height: 78rpx;
				border-radius: 100%;
			}

			.carp_1_1 {
				text:nth-of-type(2) {
					display: block;
					font-size: 24rpx;
					font-family: HarmonyOS Sans;
					font-weight: 400;
					color: #91969A;
					opacity: 1;
				}

				text:nth-of-type(1) {
					display: block;
					font-size: 32rpx;
					font-family: Source Han Sans CN;
					font-weight: 500;
					color: #141414;
					opacity: 1;
				}
			}
		}
	}

	.xian {
		height: 1rpx;
		background: #EFEFEF;
		opacity: 1;
	}

	.top {
		padding: 120rpx 30rpx 0 30rpx;
		background-image: url('@/static/img/jfgh.png');
		background-size: 100% 100%;
		background-repeat: no-repeat;
		width: 100%;
		height: 330rpx;
		display: flex;
		justify-content: space-between;
		align-items: center;


		.top_2 {
			width: 150rpx;
			height: 58rpx;
			border-radius: 44rpx;
			line-height: 58rpx;
			text-align: center;
			background-image: linear-gradient(to right, #FADFA9, #EEB46F);
			display: block;
			font-size: 28rpx;
			font-family: Source Han Sans CN;
			font-weight: 500;
			color: #141414;
			opacity: 1;
		}

		.top_1 {
			text:nth-of-type(2) {
				display: block;
				font-size: 42rpx;
				font-family: HarmonyOS Sans;
				font-weight: bold;
				line-height: 44px;
				color: #FFFFFF;
				opacity: 1;
			}

			text:nth-of-type(1) {
				display: block;
				font-size: 30rpx;
				font-family: Source Han Sans CN;
				font-weight: 400;
				color: #FFFFFF;
				opacity: 0.8;
			}
		}
	}
</style>
